
use autocxx::prelude::*;
include_cpp! {
    #include "rbtree.h"
    safety!(unsafe_ffi)
    // https://github.com/google/autocxx/issues/349
    concrete!("RedBlackTree<std::string, std::string>", StrRBTree)
    generate!("newStrRBTree")
}


pub fn new_str_rbtree() -> UniquePtr<ffi::StrRBTree> {
    ffi::newStrRBTree()
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn it_works() {
        let _rbtree = ffi::newStrRBTree();
    }
}
